<project name="banque" default="all" basedir=".">
	<property name="sources" value="."/>
	<property name="classes" value="../../bin/"/>    
	<property name="nomjar" value="test.jar"/>
	<property name="repjar" value="../../build/"/>
    <target name="clean">
        <delete dir="${classes}"/>        
    </target>
	<target name="prepare" depends="clean">
	    <mkdir dir="${classes}"/>
	</target>	
	<target name="compile" depends="prepare">
	    <echo message="Compilation en cours ..."/>
		<javac srcdir="${sources}" destdir="${classes}"/>
		<echo message="Compilation finie"/>		
	</target>
	<target name="build" depends="setupProduction,setupDevelepment">
	    <jar jarfile="${repjar}/${nomjar}" basedir="${classes}" />
	</target>
	<target name="all" depends="build">
        
    </target>
    
    <target name="setupProduction" if="lib"  depends="prepare">
      <javac 
          srcdir="${sources}" 
          destdir="${classes}"
          includes="Banque.java,Compte.java"
       />
      
    </target>
    
    <target name="setupDevelepment" unless="lib"  depends="prepare">
        <javac 
          srcdir="${sources}" 
          destdir="${classes}"
          excludes="build.xml,build1.xml"
       />
    </target>
</project>